//
//  QNCPDeviceManager.h
//  QNQNeviceModule_Example
//
//  Created by yolanda on 2025/6/9.
//  Copyright © 2025 刘观华. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "QNCentralModule.h"
#import "QNCPDevice.h"
#import "QNCPTool.h"

NS_ASSUME_NONNULL_BEGIN

@protocol QNCPDeviceDelegate <NSObject>
@required

/// 发现设备
/// @param device 发现设备
- (void)discoverCpDevice:(QNCPDevice *)device;

@end


@interface QNCPDeviceManager : NSObject

/// 当前状态(QNVaScaleStateUnknow、QNVaScaleStateConnecting、QNVaScaleStateConnected)
@property (nonatomic, readonly, assign) QNCPDeviceState scaleState;

@property (nonatomic, weak) id<QNCPDeviceDelegate> delegate;

/// 公版协议管理类
+ (QNCPDeviceManager *)sharedScaleManager;
- (instancetype)init NS_UNAVAILABLE;

/// 初始化QNVaScaleManager
/// @param centralManager 蓝牙中心类
- (instancetype)initWithCentralManager:(QNCentralManager *)centralManager;


@end

NS_ASSUME_NONNULL_END
